import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [uni()],
  server: {
    proxy: {
      // 代理/api开头的请求
      '/api': {
        target: 'http://127.0.0.1:8888', // 后端服务实际地址
        changeOrigin: true, // 改变源
      },
    },
  },
});
